﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCIndexHolidayVilla.ascx.cs"
    Inherits="NJL.Web.Controls.WUCIndexHolidayVilla" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Import Namespace="System.Data" %>
<div class="box clearfix cont" style="border-top: 2px solid #44b704;">
    <div class="leftResort f_left">
        <div class="titleFontinmg">
            <span><a href="<%if(WEBSITE_FOCUS_CITY_CODE!="") Response.Write("/"+WEBSITE_FOCUS_CITY_NAME_PINYIN); %>/djsz/">
                更多</a></span>
            <h2 class="resort">
                &nbsp;</h2>
            <strong class="f_left">工作、学习……抛开一切，下一站度假！ </strong>
        </div>
        <div class="cont holidayVillalist">
            <ul class="imglist" style="width: 733px; overflow: hidden;">
                <% 
                    DataSet ds;
                    NJL.BLL.NJL_BOOK bllBook = new NJL.BLL.NJL_BOOK();
                    for (int i = 0; i < listCompany.Count; i++)
                    {
                        ds = bllBook.GetList("TARGET_ID='" + listCompany[i].ID + "' and TYPE_CODE='2'");
                        
                %>
                <li style="height: 130px; width: 155px;">
                    <div style="position: relative;">
                        <a target="_blank" href="/shangpu/<%=listCompany[i].ID %>-index.html" title="<%=listCompany[i].COMPANY_NAME %>">
                            <img style="width: 147px; height: 105px; display: block;" class="picBor" src="<%=GetImageUrl(listCompany[i].IMAGE_CODE,"1") %>"
                                alt="[<%=base.GetAreaName(listCompany[i].AREA_CODE) %>度假山庄]<%=listCompany[i].COMPANY_NAME %>" />
                        </a>
                        <p class="font14">
                            <a target="_blank" href="/shangpu/<%=listCompany[i].ID %>-index.html" title="[<%=base.GetAreaName(listCompany[i].AREA_CODE) %>度假山庄]<%=listCompany[i].COMPANY_NAME%>">
                                <%if (listCompany[i].COMPANY_NAME.Length > 9) Response.Write(listCompany[i].COMPANY_NAME.Substring(0, 9) + "..."); else Response.Write(listCompany[i].COMPANY_NAME);%></a></p>
                    </div>
                    <%
                        if (ds.Tables[0].Rows.Count > 0 && listCompany[i].IS_OPEN_BOOK == 1)
                        {
                    %>
                    <div class="icon_yuding" title="此商户可以预定">
                    </div>
                    <%
                        } %>
                </li>
                <% 
}
                %>
            </ul>
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
        </div>
    </div>
    <!--右侧信息-->
    <div class="f_right custom">
        <div>
            <div class="titleArr">
                <h2 class="holiday">
                    这里是郊区</h2>
            </div>
            <div class="blank">
            </div>
            <div style="height: 270px; overflow: hidden;">
                <%@ register src="Ad.ascx" tagname="Ad" tagprefix="uc1" %>
                <uc1:Ad ID="Ad1" runat="server" AdId="4" />
            </div>
            <ul class="arrowList02">
                <asp:Repeater ID="rptNews" runat="server" EnableViewState="False">
                    <ItemTemplate>
                        <li><strong class="font14"><a href="/djsz/xinwen/<%#Eval("ID") %>.html" title="<%#Eval("NEWS_TITLE") %>"
                            target="_blank">
                            <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),15)%></a> </strong>
                            <p>
                                <%#PageValidate.SqlText(Eval("NEWS_SUBJECT_TITLE").ToString(),30)%>
                            </p>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>
    <div class="cleanFlex" style="height: 1px; overflow: hidden;">
    </div>
</div>
